import 'package:get/get.dart';
import 'package:flutter_blue_plus/flutter_blue_plus.dart' show BluetoothDevice;

class BlueDevice {
  String remoteId;
  String localName;
  int rssi;
  BlueDevice({ this.localName='',this.remoteId='', this.rssi=0});
}

class BlueListController extends GetxController{
  var blues = <BlueDevice>[
    BlueDevice(localName: '请选择蓝牙设备')
  ].obs;
  BlueDevice blue=BlueDevice();
  addBlueDevice(BlueDevice val){
    blues.add(val);
  }
  setBlueDevice(BlueDevice val){
    blue=val;
  }
}